import store from '@/store'
export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  searchLabelWidth:100,
  addBtn:false,
  editBtn:false,
  delBtn:false,
  selection:true,
  arrow:false,
  "column": [
	  {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      hide:true,
    },	  {
      "type": "input",
      "label": "线路编码不能重复",
      "prop": "lineCode",
      hide:true,
    },	  {
      "type": "input",
      "label": "车站编码不能重复",
      "prop": "stationCode",
      hide:true,
    },	  {
      "type": "select",
      "label": "TVM编号",
      "prop": "tvmCode",
      dicUrl: '/support/swpmtvmcode/page',
		props: {
		  label: 'tvmCode',
		  value: 'tvmCode',
		  res: 'data.records'
		},
	  dicQuery: {
		  size: -1,
		  stationCode: store.getters.userInfo.stationCode,
		  status: '1'
	  },
      search:true,
    },	  {
      "type": "number",
      "label": "现金支付总金额",
      "prop": "dailyCashTotalAmount",
	    precision: 2,
    },	  {
      "type": "number",
      "label": "电子支付总金额",
      "prop": "electronicPayTotalAmount",
	    precision: 2,
    },	  {
      "type": "input",
      "label": "录入人ID",
      "prop": "operatorId",
      hide:true,
    },	  {
      "type": "select",
      "label": "录入人名称",
      "prop": "operatorName",
      search: true,
      params: {
        userCodeKey: 'operatorJobNo'
      },
      component: 'user-select',

    },	  {
      "type": "input",
      "label": "录入人工号",
      "prop": "operatorJobNo",
      "search":true
    },	  {
      "type": "datetime",
      "label": "开始时间",
      "prop": "startTime",
      value:'yyyy-MM-dd HH:mm:ss',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    }, {
      type: "date",
      label: "开始时间",
      prop: "startTimeDTO",
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      search: true,
      hide: true,
      showColumn: false,
      display: false
    },	  {
      "type": "datetime",
      "label": "结束时间",
      "prop": "endTime" ,
       value:'yyyy-MM-dd HH:mm:ss',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    }, {
      type: "date",
      label: "结束时间",
      prop: "endTimeDTO",
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      search: true,
      hide: true,
      showColumn: false,
      display: false
    },	  {
      "type": "select",
      "label": "状态",
      "prop": "approvalStatus",
      search:true,
      searchValue:'0',
      dicData:[{
        label:'未提交',
        value:'0'
      },{
        label:'已提交',
        value:'1'
      }]
    },	  {
      "type": "input",
      "label": "备注",
      "prop": "remark"
    },	  {
      "type": "input",
      "label": "创建者ID",
      "prop": "creatorId",
      hide:true,
    },	  {
      "type": "input",
      "label": "创建者名称",
      "prop": "creatorName",
      hide:true,
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      hide:true,
    },	  {
      "type": "input",
      "label": "更新时间",
      "prop": "updateTime",
      hide:true,
    },	  {
      "type": "input",
      "label": "部门ID",
      "prop": "deptId",
      hide:true,
    },	  {
      "type": "input",
      "label": "删除标志 1：删除 0：未删",
      "prop": "delFlag",
      hide:true,
    }  ]
}
